<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>epg频道列表</title>
    <meta charset="utf-8">
    <script charset="utf-8" type="text/javascript" src="./js/init.js?v=2014122229711"></script>
</head>
<style>

    h6 {
        padding: 7px;
    }

    .nav-tabs > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus {
        border-top: 1px solid #ccc;
    }

    .ui-jqgrid tr.jqgrow td {
        white-space: normal !important;
        word-wrap: break-word;
        height: auto;
        vertical-align: text-top;
        padding-top: 2px;
    }
</style>
<body>
<header></header>
<div class="wrapper wrapper-video">
    <nav>
        <ul class="breadcrumb">
            <li>频道<span class="divider"> &gt; </span></li>
            <li>列表</li>
        </ul>
    </nav>
    <div class="container container-video">
        <div class="container-list" id="ChannelListContainer">
            <div class="query" id="QueryContainer">
                <form class="form-horizontal form-container form-inline" name="basicFrm" autocomplete="off">
                    <div class="container">
                        <div class="row">
                            <div class="span4">
                                <div class="control-group">
                                    <label class="control-label" for="">奇谱ID：</label>

                                    <div class="controls">
                                        <input type="text" name="qipuId" placeholder="" autocomplete="off"
                                               class="input-small query-input-text">
                                    </div>
                                </div>
                            </div>
                            <div class="span4">
                                <div class="control-group">
                                    <label class="control-label" for="">
                                        <select name='channel_name_type' class="videoName query-select-control"
                                                autocomplete="off">
                                            <option value="name">频道名称</option>
                                            <option value="universalCode">节目单代码</option>
                                        </select>
                                    </label>

                                    <div class="controls">
                            <span class="ui-front ui-suggest"><input type="text" name="name" placeholder=""
                                                                     autocomplete="off"
                                                                     class="input-medium query-input-text ui-autocomplete-input"></span>
                                    </div>
                                </div>
                            </div>

                            <div class="span5">
                                <div class="control-group">
                                    <label class="control-label" for="">创建日期：</label>

                                    <div class="controls">
                                        <input type="text" name="startDate" placeholder="" autocomplete="off"
                                               class="input-small">~<input type="text" name="endDate" placeholder=""
                                                                           autocomplete="off" class="input-small">
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="row">

                            <!--

                                                            <div class="span4">
                                                                <div class="control-group">
                                                                    <label class="control-label" for="">操作人：</label>
                                                                    <div class="controls">
                                                                        <input type="text" name="operator" placeholder="" autocomplete="off" class="input-small query-input-text">
                                                                    </div>
                                                                </div>
                                                            </div>
                            -->

                            <div class="span4">
                                <div class="control-group cleargroup">
                                    <label class="control-label" for="">启用状态：</label>

                                    <div class="controls">
                                        <select name="isEnable" class="input-small pps-content-type" autocomplete="off">
                                            <option value="">请选择</option>
                                            <option value="1">启用</option>
                                            <option value="0">停用</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <!--
                            <div class="span4">
                                <div class="control-group cleargroup">
                                    <label class="control-label" for="">收费状态：</label>
                                    <div class="controls">
                                        <select name="isMemeberFree" class="input-small pps-content-type" autocomplete="off">
                                            <option value="">请选择</option>
                                            <option value="0">收费</option>
                                            <option value="1">免费</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            -->

                            <div class="span3" style="width:190px;">
                                <div class="control-group cleargroup">
                                    <label class="control-label" style="width:60px;padding-left: 5px;"
                                           for="">直播类型：</label>

                                    <div class="controls">
                                        <select name="liveType" class="input-small pps-content-type" autocomplete="off">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div class="span2" style="margin-left:2px;">
                                <div class="control-group cleargroup">
                                    <div class="controls" style="width:150px;">
                                        <select name="type" class="input-small pps-content-type hide"
                                                autocomplete="off" style="width:120px">

                                        </select>
                                    </div>
                                </div>
                            </div>

                            <div class="span5">
                                <div class="control-group">
                                    <label class="control-label" style="width:60px;padding-left: 9px;"
                                           for="">删除状态：</label>

                                    <div class="controls">
                                        <select name="isDelete" class="input-small pps-content-type"
                                                autocomplete="off">
                                            <option value="0">使用中</option>
                                            <option value="1">已删除</option>
                                            <option value="2">全部</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                        </div>

                        <div class="control-group">
                            <label class="control-label" for=""></label>

                            <div class="controls">
                                <button type="button" class="btn btn-primary query-btn">搜索</button>
                                <button type="reset" id="resetFrm" class="btn">重置</button>
                                <a href="./channel_edit.html" class="btn" target="_blank">新建</a>
                                <a name="configslink" style="display: none" href="./env_config_list.html" class="btn"
                                   target="_blank">常量设置</a>
                            </div>
                        </div>
                    </div>
                </form>
            </div>

            <div class="result">

                <div>
                    <table class="grid" id="ChannelListGrid"></table>
                    <div class="pager" id="ChannelListPager"></div>
                </div>

            </div>

            <div id="o-h-dlg" style="display:none;">
                <table id="logList">
                    <tr>
                        <td></td>
                    </tr>
                </table>
                <div id="log_pager"></div>
            </div>

            <div id="preview">
            </div>
        </div>
    </div>
</div>

<script type="text/x-jquery-tmpl" id="operate-preview">

<div class="container-fluid">
  <div class="row-fluid">
    <div class="span7" >

        <h6  >PC端</h6>

        <div id="flv" style="width:640px;height:420px;background-color:black;color:white;">
        </div>

        <h6 class="nav-tabs" >{{= date}}备播库节目</h6>

        <div style="height:280px;overflow-y:scroll;width:640px">
            <table class="table table-striped">

              <thead>
                <tr>
                  <th>奇谱ID </th>
                  <th>节目显示名</th>
                  <th>内容类型</th>
                  <th>时长</th>
                </tr>
              </thead>

              <tbody>
              {{each(i,list) backup}}
                 <tr>
                    <td>{{= list.qipuId}}</td>
                    <td>{{= list.displayName}}</td>
                    <td>{{= list.contentType}}</td>
                    <td>{{= list.duration}}</td>
                 </tr>
              {{/each}}
              </tbody>
            </table>
        </div>


    </div>
    <div class="span5">
         <!--
          <h6>手机端MP4</h6>
          <div id="mp4" style="width:362px;height:200px;background-color:black;color:white">

         </div>
         -->





<ul class="nav nav-tabs">
  <li style="padding-top:10px;padding-left:10px;margin-right:140px;"> <h6 style="padding:0px;">{{= date}}节目单</h6></li>
  <li><a href="#am" data-toggle="tab">AM</a></li>
  <li><a href="#pm" data-toggle="tab">PM</a></li>
</ul>

<div class="tab-content">
  <div class="tab-pane" id="am">


        <div style="height:690px;overflow-y:scroll;">
            <table class="table table-striped">

              <thead>
                <tr>
                    <th width="130">节目名称</th>
                    <th width="100">播放类型</th>
                    <th width="100">开始时间</th>
                    <th width="100">结束时间</th>

                </tr>
              </thead>
              <tbody>

                {{each(i,l) list.am}}
                 {{if l.playing==true}}
                   <tr cur-program="playing">
                    <td style="background-color: green;color:#fff;">{{= l.pname}}</td>
                    <td style="background-color: green;color:#fff;">{{= l.type}}</td>
                    <td style="background-color: green;color:#fff;">{{= l.startPlayTime}}</td>
                    <td style="background-color: green;color:#fff;">{{= l.endPlayTime}}</td>

                   </tr>
                 {{else}}
                   <tr>
                    <td>{{= l.pname}}</td>
                    <td>{{= l.type}}</td>
                    <td>{{= l.startPlayTime}}</td>
                    <td>{{= l.endPlayTime}}</td>

                   </tr>
                 {{/if}}
                {{/each}}

              </tbody>
            </table>
        </div>

  </div>
  <div class="tab-pane" id="pm">

        <div style="height:690px;overflow-y:scroll;">
            <table class="table table-striped">

              <thead>
                <tr>
                    <th width="130">节目名称</th>
                    <th width="100">播放类型</th>
                    <th width="100">开始时间</th>
                    <th width="100">结束时间</th>

                </tr>
              </thead>
              <tbody>

                {{each(i,l) list.pm}}
                 {{if l.playing==true}}
                   <tr cur-program="playing">
                    <td style="background-color: green;color:#fff;">{{= l.pname}}</td>
                    <td style="background-color: green;color:#fff;">{{= l.type}}</td>
                    <td style="background-color: green;color:#fff;">{{= l.startPlayTime}}</td>
                    <td style="background-color: green;color:#fff;">{{= l.endPlayTime}}</td>

                   </tr>
                 {{else}}
                   <tr>
                    <td>{{= l.pname}}</td>
                    <td>{{= l.type}}</td>
                    <td>{{= l.startPlayTime}}</td>
                    <td>{{= l.endPlayTime}}</td>

                   </tr>
                 {{/if}}
                {{/each}}

              </tbody>
            </table>
        </div>

  </div>

</div>

    </div>
  </div>
</div>




</script>


<script type="text/javascript">
    require(['epg'], function () {
        Channel.Action.run();
    })
</script>

</body>
<html>
